package com.roocon.design_pattern.chapter08_active_object;

public class DisplayTask extends Task {

  private final String content;

  public DisplayTask(Worker worker,String content) {
    super(worker, null);
    this.content = content;
  }

  @Override public void execute() {
    this.worker.doWork(content);
  }
}
